package com.api.user.dao;

import com.api.core.ApiMapper;
import com.api.user.model.TeamUser;
import com.api.user.vo.TeamVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TeamUserMapper extends ApiMapper<TeamUser> {
    TeamUser getByTeamIdAndUserId(@Param("teamId") Long teamId,@Param("userId") Long userId);

    List<Map<String, Object>> list(@Param("params") Map<String, Object> params,@Param("order") Map<String, Object> orderParams);

    Integer updateNew(TeamUser teamUser);
    Integer deleteNew(TeamUser teamUser);

    List<TeamVo> userList(@Param("params")  Map<String, Object> params);

    int noRead(Long id);
}